package com.chixing.day02;

public class SwitchCaseDemo {
    public static void main(String[] args) {
        int day = 3;
        //switch,case后面变量的数据类型只能是：
        // 能够转换成int类型+String+枚举enum
        //能够转换成int类型(byte,short,int,char,
        // Byte,Short,Integer,Character)
        switch (day) {
            case 1:
                System.out.println("周1");
                break;
            case 2:
                System.out.println("周2");
                break;
            case 3:
                System.out.println("周3");
                break;//break结束switch-case
            case 4:
                System.out.println("周4");
                break;
            case 5:
                System.out.println("周5");
                break;
            case 6:
                System.out.println("周6");
                break;
            case 7:
                System.out.println("周7");
                break;
            default:
                System.out.println("无效的数字");

        }
    }
}